# Docker image for springboot application
# VERSION 0.0.1
# Author: bolingcavalry

### 基础镜像，使用alpine操作系统，openjkd使用8u201
FROM openjdk:8u201-jdk-alpine3.9

#作者
MAINTAINER jhy

#系统编码
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8



#应用构建成功后的jar文件被复制到镜像内，名字也改成了app.jar
ADD target/test-admin.jar /app/test-admin.jar
ADD target/classes/application.yml /app/config/application.yml
ADD target/classes/application-dev.yml /app/config/application-dev.yml
ADD target/classes/shardingsphere-dev.yml /app/config/shardingsphere-dev.yml

# 设置工作目录
WORKDIR /app

#VOLUME ["/usr/local/test/logs/","/app/logs"]

#启动容器时的进程
ENTRYPOINT ["java","-jar","test-admin.jar"]
#ENTRYPOINT ["java","-jar","/app.jar","--spring.config.location=classpath:/application.yml"]


#暴露8080端口
EXPOSE 8128